package Demo01;

public class PhoneTwo {
    public static void main(String[] args) {
        Phone  one = new Phone();
        System.out.println(one.brand);//null
        System.out.println(one.price);//0.0
        System.out.println(one.color);//null
        System.out.println("=============");

        one.brand = "苹果";
        one.price = 6799;
        one.color = "黑色";
        System.out.println(one.brand);
        System.out.println(one.price);
        System.out.println(one.color);
        System.out.println("=============");

        one.call("乔布斯");
        one.sendMessage();
        System.out.println("=============");


        Phone  two = new Phone();
        System.out.println(two.brand);//null
        System.out.println(two.price);//0.0
        System.out.println(two.color);//null
        System.out.println("=============");

        two.brand = "三星";
        two.price = 5999;
        two.color = "蓝色";
        System.out.println(two.brand);
        System.out.println(two.price);
        System.out.println(two.color);
        System.out.println("=============");

        two.call("欧巴");
        two.sendMessage();
    }
}
